VertexInDegree
VertexInDegree[g] gives the list of vertex in-degrees for all vertices in the graph g.
VertexInDegree[g,v] gives the vertex in-degree for the vertex v.
VertexInDegree[{v->w,…},…] uses rules v->w to specify the graph g.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.